home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
Libraries
/
JPNL Libraries
/
Streams.java
< prev
next >
Wrap
Text File
|
1996-05-23
|
318b
|
19 lines
package au.com.peter.libraries;
import java.io.*;
public class Streams {
public static void CopyStream( InputStream in, OutputStream out ) throws IOException {
byte[] data = new byte[2048];
int c;
do {
c = in.read( data );
if ( c > 0 ) {
out.write( data, 0, c );
}
} while ( c >= 0 );
}
}